package ex.vo;

import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonPropertyOrder;

import java.io.Serializable;
import java.math.BigDecimal;

@JsonPropertyOrder({
        "city",
        "lat",
        "lng",
        "country",
        "iso2",
        "adminName",
        "capital",
        "population"
})
public  class CityPojo implements Serializable {
    public String city;
    public BigDecimal lat;
    public BigDecimal lng;
    public String country;
    public String iso2;
    public String adminName;
    public String capital;
    public long population;

    public CityPojo() {
    }

    public CityPojo(
            String city,
            BigDecimal lat,
            BigDecimal lng,
            String country,
            String iso2,
            String adminName,
            String capital,
            long population) {
        this.city = city;
        this.lat = lat;
        this.lng = lng;
        this.country = country;
        this.iso2 = iso2;
        this.adminName = adminName;
        this.capital = capital;
        this.population = population;
    }

    @Override
    public String toString() {
        return "CityPojo{" +
                "city='" + city + '\'' +
                ", lat=" + lat +
                ", lng=" + lng +
                ", country='" + country + '\'' +
                ", iso2='" + iso2 + '\'' +
                ", adminName='" + adminName + '\'' +
                ", capital='" + capital + '\'' +
                ", population=" + population +
                '}';
    }
}